//
//  PicSelectController.h
//  WestWolves
//
//  Created by JL on 16/1/3.
//  Copyright © 2016年 ZJ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <ZYQAssetPickerController.h>

typedef NS_ENUM(NSInteger,PickerControllerSourceType){
    PickerVideoSourceType = 1,//小视频
    PickerCameraSourceType ,//相机
    PickerAlbumSourceType //相册
};

@interface PicSelectController : UIViewController<UINavigationControllerDelegate,UIImagePickerControllerDelegate,ZYQAssetPickerControllerDelegate>
- (void)finishImagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info andType:(PickerControllerSourceType)type andMediaURL:(NSURL *)url;
- (void)failImagePickerControllerDidCancel:(UINavigationController*)picker;
- (void)finishAssetPickerController:(ZYQAssetPickerController *)picker didFinishPickingAssets:(NSMutableArray *)picArray;

- (void)selectImaWithType:(PickerControllerSourceType)type;
- (void)assetPickerSelectIma:(int)imaNum;

- (NSString *) changeVideoToMap4WithVideoURL:(NSURL *)url;
//移除本地的MP4文件路径
- (BOOL)removeVideoWithVideoPath:(NSString *)path;

- (UIImage *) getVideoImaWithUrl:(NSURL *)url;
- (BOOL)canOpenCamera;//判断相机是否可用
- (BOOL)canOpenPhotoLibrary;//判断相册是否可用

@end
